#!/usr/local/bin/python3
# -*- coding: utf-8 -*-

"""
@File    : views.py
@Author  : different && 道阻且长,行则将至 行而不辍,未来可期
@Time    : 2021/9/27 15:38
@Desc    :

"""
from django.http import HttpResponse


def chinese(request):
    if request.method == 'GET':
        request.session['language'] = 'zh_CN'
        return HttpResponse('')
    return HttpResponse(status=404)


def english(request):
    if request.method == 'GET':
        request.session['language'] = 'en_US'
        return HttpResponse('')
    return HttpResponse(status=404)
